// pages/order/order.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    time:  60 * 30 * 1000,
    timeData: {},
    text:null
  },
  onChange(e) {
    this.setData({
      timeData: e.detail,
    });
  },
      //复制订单号
      copywxtap: function (e) {
      
        console.log();
        var that = this;
        var {text} = e.currentTarget.dataset
        console.log(text);
        wx.setClipboardData({
          data: text,
          success: function () {
            wx.hideLoading()
            wx.showToast({
              title: '复制成功',
            })
          },fail:function(res) {
           console.log(res);   
          }
        })
  
     },
     //拨打电话
     call(e){
      let {phone} = e.currentTarget.dataset //
      wx.makePhoneCall({
        phoneNumber: phone  
      })
     },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

})